package com.cskaoyan.chapter0503.c050301;

import java.util.ArrayList;
import com.cskaoyan.chapter0503.common.Employee;

/**
 * @Author:WalterChan
 * @Decription:Test5
 * @Date Created in 2024-06-11-21:35
 */
public class Test5 {
    public static void main(String[] args) {
        ArrayList<Employee> list = new ArrayList<>();
        list.add((new Employee ("Tony Tester", 40000 , 1990, 3, 15)));
        list.add(new Employee("Harry Hacker" , 50000 , 1989, 10, 1));
        list.add(new Employee ("Carl Cracker" , 75000, 1987, 12 , 15));

        for (Employee employee : list) {
            employee.raiseSalary(5);
        }

        for (Employee employee : list) {
            System.out.println(employee);
        }
    }
}
